package com.only4play.practice.invoice.core.domainservice.pipeline.filters.exchange;

import com.only4play.practice.invoice.core.domainservice.pipeline.context.ExchangeInvoiceContext;
import com.only4play.practice.invoice.core.facade.IInvoicePipeLineFacadeService;
import com.only4play.practice.ordercommon.filters.AbstractOrderFilter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@RequiredArgsConstructor
@Slf4j
public class SaveExchangeLogFilter extends AbstractOrderFilter<ExchangeInvoiceContext> {

  private final IInvoicePipeLineFacadeService invoicePipeLineFacadeService;

    /**
     * 通常是系统需要保证可靠性，所以需要记录下请求日志，方便后续排查问题
     * @param exchangeInvoiceContext
     */
  @Override
  protected void handle(ExchangeInvoiceContext exchangeInvoiceContext) {
      log.info("保存请求记录");
      log.info("SaveExchangeLogFilter");
  }
}
